export const device = {
    audio: {
        startRecord: function name(params) {
            ssdk("device.audio.startRecord", params)
        },
        stopRecord: function name(params) {
            ssdk("device.audio.stopRecord", params)
        },
        onRecordEnd: function name(params) {
            ssdk("device.audio.onRecordEnd", params)
        },
        play: function name(params) {
            ssdk("device.audio.play", params)
        },
        pause: function name(params) {
            ssdk("device.audio.pause", params)
        },
        resume: function name(params) {
            ssdk("device.audio.resume", params)
        },
        stop: function name(params) {
            ssdk("device.audio.stop", params)
        },
        onPlayEnd: function name(params) {
            ssdk("device.audio.onPlayEnd", params)
        },
    },
    base: {
        getUUID: function name(params) {
            ssdk("device.base.getUUID", params)
        },
        getPhoneInfo: function name(params) {
            ssdk("device.base.getPhoneInfo", params)
        },
    },
    connection: {
        getNetworkType: function name(params) {
            ssdk("device.connection.getNetworkType", params)
        },
    },
    geolocation: {
        get: function name(params) {
            ssdk("device.geolocation.get", params)
        },
    },
    media: {
        capture: function name(params) {
            ssdk("device.media.capture", params)
        },
        select: function name(params) {
            ssdk("device.media.select", params)
        },
    },
    notification: {
        alert: function name(params) {
            ssdk("device.notification.alert", params)
        },
        confirm: function name(params) {
            ssdk("device.notification.confirm", params)
        },
        toast: function name(params) {
            ssdk("device.notification.toast", params)
        }
    }
}
